<!--添加广告-->
<script>
    var add_Obj = {
        page_type: 1,//列表类型，1 广告类，2广告栏目，3广告
        id: null,//编辑数据的ID
        pId: 0,//上级ID
        pId1: 0,//上级ID
        opType:1,
        province:'',//省
        city: '',//市
        district:''//区县
    };
</script>
<div class="diction">
    <h1 class="titleDiv">
        <div class="titL">
            <span id="htmlTitle">添加广告</span>
        </div>
    </h1>
    <div class="userDiv applyDiv">
        <form action="htmlWeb/adv/save" id="advForm" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id" id="id"><!--主键-->
            <input type="hidden" name="parentId" id="parentId" value="0">
            <ul class="cleafix">
                <!--<li>
                    <span>上级栏目：</span>
                    <input name="parentName" id="parentName" disabled class="userTxt" type="text" value=""/>
                </li>-->
                <li>
                    <span>广告标题：</span>
                    <input name="name" class="userTxt" type="text" value=""/>
                </li>
                <li>
                    <span>广告图片：</span>
                    <div class="message message1">
                        <div id="localImag">
                            <img id="preview" onClick="f.click()" onfocus="this.blur()" class="liulan">
                        </div>
                        <input type="file" id="f" name="file" class="files" onchange="javascript:setImagePreview();"/>
                    </div>
                </li>
                <li>
                    <span>商家电话：</span>
                    <input name="mobile" class="userTxt" type="text" value=""/>
                </li>
                <li>
                    <span>URL状态：</span>
                    <div class="radioDiv">
                        <input type="radio" name="urlStatus" value="-1"/>禁用&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="urlStatus" value="1" checked="true" />启用
                    </div>
                </li>
                <li>
                    <span>广告排序：</span>
                    <input name="sort" class="userTxt" type="text" value=""/>
                </li>
                <li id="areaLi">
                    <span>广告城市：</span>
                    <select class="userTxt" id="province" name="province">
                        <option value=""></option>
                    </select>  
                    <select class="userTxt" id="city" name="city">
                        <option value=""></option>
                    </select>  
                    <select class="userTxt" id="district" name="district">
                        <option value=""></option>
                    </select>
                </li>
                <li>
                    <span>广告状态：</span>
                    <em>
                        <div class="radioDiv">
                            <input type="radio" name="status" value="-1" />禁用&nbsp;&nbsp;&nbsp;
                            <input type="radio" name="status" value="1" checked="true" />启用
                        </div>
                    </em>
                </li>
                <li>
                    <span>描述：</span>
                    <div class="editorDiv">
                        <script id="_editor" name="descn" type="text/plain" style="width: 580px;"></script>
                    </div>
                </li>
                <li>
                    <h2>
                        <input class="save" type="submit" value="保存" />
                        <input class="cancel" type="button" value="取消" id="cancel" />
                    </h2>
                </li>
            </ul>
        </form>
    </div>
</div>
<script> UE.delEditor('_editor'); var ue = UE.getEditor('_editor',{
                        wordCount:false,
                        //关闭elementPath
                        elementPathEnabled:false,
                    });</script>